//
//  CustomLabel.m
//  13-AutoLayout强化
//
//  Created by dllo on 16/8/1.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CustomLabel.h"

@implementation CustomLabel

- (CGSize)intrinsicContentSize {
    CGRect rect = [self.text boundingRectWithSize:CGSizeMake(self.frame.size.width, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName: [UIFont systemFontOfSize:17]} context:nil];
    NSLog(@"%@", NSStringFromCGRect(rect));
    return rect.size;
}

@end
